<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>客户报表</title>
</head>
<body>
<div id="main" style="width: 600px;height:400px;"></div>
<#include "../common/link.ftl">
<script src="/static/js/plugins/echarts/echarts.common.min.js"></script>

<script type="text/javascript">
    // 基于准备好的dom，初始化echarts实例
    var myChart = echarts.init(document.getElementById('main'));
    // 指定图表的配置项和数据
    option = {
        title: {
            text: '潜在客户报表',
            subtext: '分组类型:${groupTypeName}',
            left: 'center'
        },
        tooltip: {
            trigger: 'item',
            formatter: '{a} <br/>{b} : {c} ({d}%)'
        },
        legend: {
            orient: 'vertical',
            left: 'left',
            data:${xList}
        },
        series: [
            {
                name: '潜在客户数',
                type: 'pie',
                radius: '55%',
                center: ['50%', '60%'],
                data: ${yList},
                emphasis: {
                    itemStyle: {
                        shadowBlur: 10,
                        shadowOffsetX: 0,
                        shadowColor: 'rgba(0, 0, 0, 0.5)'
                    }
                }
            }
        ]
    };
    // 为echarts对象加载数据
    myChart.setOption(option);
</script>
</body>
</html>